package com.dream.service.user.api;

import com.dream.common.model.response.BaseListResponse;
import com.dream.common.model.response.BaseResponse;
import com.dream.service.user.domain.entity.IsFollowCollect;

import java.util.List;

/**
 * Created by kangd on 2016/5/4.
 */
public interface UserCollectionService {
    /**
     * 增加收藏
     * @param pin
     * @param spuList
     * @return
     */
    public BaseResponse<Boolean> addWishList(String pin, List<Long> spuList);

    /**
     * 删除收藏
     * @param pin
     * @param spuList
     * @return
     */
    public BaseResponse<Boolean> delWishList(String pin,List<Long> spuList);

    /**
     * 拉取wishlist
     * @param pin
     * @return
     */
    /**
     * 拉取wishlist
     * @param pin
     * @param pageNum 页码
     * @param pageSize 页面容量
     * @return
     */
    public BaseListResponse getWishList(String pin, Integer pageNum, Integer pageSize);

    /**
     * 是否收藏
     * @param pin
     * @param spu
     * @return
     */
    public BaseResponse<IsFollowCollect>  iscollect (String pin, Long spu);

    /**
     *  只返回该用户收藏的spu列表
     * @param pin
     * @return
     */
    public BaseListResponse getWishListOnlySpu(String pin);
}
